package com.cinc.mdm.modules.materialCodeRule.service;

import com.cinc.mdm.modules.materialCodeRule.entity.MdmMaterialCodeRule;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 物料自动编码规则
 * @Author: jeecg-boot
 * @Date:   2023-08-31
 * @Version: V1.0
 */
public interface IMdmMaterialCodeRuleService extends IService<MdmMaterialCodeRule> {

    boolean add(MdmMaterialCodeRule mdmMaterialCodeRule);

    boolean edit(MdmMaterialCodeRule mdmMaterialCodeRule);

    /**
     * 编码生成
     *
     * @param materialType
     * @param materialClass
     * @return java.lang.String
     */
    String generateMaterialCode(String materialType, String materialClass);
}
